package nongchang.kuaijiecaifu.com.ncapp_android.retrofit.good;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/6/24 0024.
 */
public class Address implements Parcelable {
    public String name="";
    public String phone="";
    public String address="";
    public boolean isdefault;
    public String area="";

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.phone);
        dest.writeString(this.address);
        dest.writeByte(this.isdefault ? (byte) 1 : (byte) 0);
        dest.writeString(this.area);
    }

    public Address() {
    }

    protected Address(Parcel in) {
        this.name = in.readString();
        this.phone = in.readString();
        this.address = in.readString();
        this.isdefault = in.readByte() != 0;
        this.area = in.readString();
    }

    public static final Creator<Address> CREATOR = new Creator<Address>() {
        @Override
        public Address createFromParcel(Parcel source) {
            return new Address(source);
        }

        @Override
        public Address[] newArray(int size) {
            return new Address[size];
        }
    };
}
